﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.UI;
internal class FormShop : SingleForm<FormShop>
{
    protected override string AssetName => "FormShop";

    protected override void BindUIEvents(Transform tf)
    {
        if (tf.name == "Slider_FOV")
        {
            tf.GetComponent<Slider>().onValueChanged.AddListener((f) => { Camera.main.fieldOfView = f; });
        }
        else if (tf.name == "Btn_TuLongDao")
        {
            tf.GetComponent<Button>().onClick.AddListener(() =>
            {
                FormShopItemInfo.Instance.Show();
                Debug.Log(tf.name);
            });
        }
        else if (tf.name == "Button")
        {
            tf.GetComponent<Button>().onClick.AddListener(() =>
            {
                Debug.Log(tf.name);
            });
        }
    }
}